<%@ include file="/include.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <link rel="stylesheet" type="text/css" href="styles/default.css" >
  <script type="text/javascript" src="scripts/common.js"></script>
</head>

<body>
<div class="main" style="width:60%;">
	<form name="RecordCodePublish" action="RecordCodePublish.do" method="post">
			<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
			  <caption>
				  报检备案代码查询
			  </caption>
			    <tr>
			      <td>
			        <table border="0" width="50%">
			          <tr>
			            <td width="26%"></td>
			            <td width="20%"></td>
			            <td width="15%"></td>
			            <td ></td>
			          </tr>
			          <tr height="25">
			            <td align="right">中文名</td>
			            <td><input type="text" name="name" value="${map.ccode.name}"></td>
			            <td align="right">备案号</td>
			            <td><input type="text" name="code" value="${map.ccode.code}"></td>
			          </tr>
			          <tr class="button">
			            <td colspan="4">
			            	<input type="submit" value=" 查 询 " />&nbsp;
			              	<input type="button" value=" 清空 " onclick="clearInput();" />
			            </td>
			          </tr>
			        </table>
			      </td>
			    </tr>
			  
			  <tr height="30">
			      <td align="center">
			      	<mytag:pagination pager="${map.page}" pageSize="10"  suppressHidden="true"/>
			      </td>
			  </tr>
			  <tbody>
			    <tr>
			      <td align="center">
			        <table class="list">
			          <tr class="title">
			            <td width="5%">序号</td>
			            <td width="23%">类型</td>
			            <td>备案号</td>
			            <td>中文名</td>
			            <td>英文名</td>
			          </tr>
					<c:forEach items="${map.page.items}" varStatus="stat" var="code">
			          <tr>
			            <td>${stat.count+map.page.seq}</td>
			            <td>
			            	<mytag:c2s type="RecordCodes_type" key="${code.type}"/>
			            </td>
			            <td>${map.appPrefix}<span style="font-weight:600;">${code.code}</span></td>
			            <td>${code.name}</td>
			            <td>${code.ename}</td>
			          </tr>
					</c:forEach>
			        </table>
			      </td>
			    </tr>
			  </tbody>
			    <tr height="30">
			      <td align="center">
			      	<mytag:pagination pager="${map.page}" pageSize="10"  suppressHidden="false"/>
			      </td>
			    </tr>
			</table>
	</form>
</div>
</body>
</html>
